/*
 * Mengzhe's main pages
 *
 * Multi-screen layout styles for your page. 
 *
 */
// @import '_h5bp';

/*
 * Visual Style Guide styles
 * Remove if you prefer to use a CSS library, like Bootstrap
 */
// @import 'components/components';

$default-font-color: white;   // Default font color
$wrapper-font-color: #efefef;
$contact-email-color: rgba(#00aabb, 0.8);
$pagebar-height: 80px;

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0px;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  background-image: url('/images/background/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: black;
  box-sizing: border-box;
  overflow: hidden;
}

a {
  font-family: inherit;
  font-weight: inherit;
  border: inherit;
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

#containter-main {
  min-height: 100%;
  height: auto !important;
  height: 100%;
}

.page-bar {
  display: flex;
  width: 100%;
  height: $pagebar-height;
  flex-direction: row;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.3);
  z-index: 2;
}

.page-bar.open {
  // transform: translate(250px,0);
}

.wrapper {
  margin: auto;
  max-width: 800;
  width: 90%;
  display: inherit;
}

.page-bar .logo-img {
  width: 76px;
  height: 76px;
  float: none;
  margin: 2px;
}

.page-bar .logo-img:hover {
  border-style: solid;
  border-width: 2px;
  border-color: rgba(254, 254, 254, 0.5);
}

.page-bar .logo-text {
  flex: 1 1;
  // font-size: ;
  line-height: 80px;
  max-height: 80px;
  margin: 0 10px;
  color: $default-font-color;
  overflow: hidden;
  // float: none;
}

.page-bar .logo-text a {
  text-decoration: none;
  color: inherit;
}

.page-bar a.btn {
  display: flex;
  height: 60px;
  width: 60px;
  flex-direction: row;
  background-image: none;
  background-color: transparent;
  
  padding: 6px;
  margin: 4px 10px 4px 0px;
  
  box-sizing: border-box;
  
  border-style: solid;
  border-radius: 4px;
  border-width: 2px;
  border-color: rgba(254, 254, 254, 0.5);
  
  transition: border 300ms ease-in,background 300ms ease-in;
  
  -webkit-tap-highlight-color: transparent;
}

.page-bar a.btn:hover {
  border-color: transparent;
  background-color: rgba(254, 254, 254, 0.2);
}

.page-bar a.btn:focus {
  border-color: transparent;
  outline: 0;
  background-color: rgba(254, 254, 254, 0.2);
}

.page-bar a.btn:active {
  border-color: transparent;
  background-color: rgba(254, 254, 254, 0.4);
}

.page-bar a.btn img {
  // display: none;
  width: 44px;
  height: 44px;
}

.navdrawer {
  position: fixed;
  // margin: auto;
  top: 80px;
  left: 0;
  width: 100%;
  height: 0px;
  
  color: $wrapper-font-color;
  background-color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  
  z-index: 1;
  
  transition: height 0.4s ease-out, background-color 0.4s ease-out;
  
  ul {
    height: auto;
    width: 100%;
    // padding: 0;
    margin: 0;
    list-style-type: none;
    z-index: 2;
    
    li {
      white-space: nowrap;
            
      a {
        // height: 60px;
        padding: 8px 20px;
        // line-height: 1.4;
        display: block;
        text-decoration: none;
        color: $default-font-color;
        // transition: background-color 0.2s ease-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.7);
      }
      
      a:hover {
        background-color: rgba(255, 255, 255, 0.5);
      }
      
      a:focus {
        background-color: rgba(255, 255, 255, 0.6);
        outline: 0;
      }
    }
  }
}

.navdrawer.open {
  height: 108px;
}

.circle-box {
  border-radius: 50%;
}

main {
  top: 80px;
  padding-bottom: 69px;
}

#page-footer {
  padding: 2px;
  margin-top: -69px;
  display: block;
  background-color: rgba(255, 255, 255, 0.3);
  color: $wrapper-font-color;
}

.foot-col h2,
.copyright {
  margin: 0;
}

.contact-list {
  list-style: none;
  margin: 0;
}

.contact-list .email {
  color: $contact-email-color;
}

// wide screen for tab and desktop
@media screen and (min-width: 720px) {
  .page-bar a.btn {
    display: none;
  }
//   
  .wrapper {
    width: 80%;
    // position: relative;
    // margin: 0 auto;
    max-width: 1000px;
  }
  
  .navdrawer {
    height: auto;
    
    ul {
      padding: 0;
      margin: 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.7);
      
      li {
        display: inline-table;
        
        a {
          border-bottom-width: 0;
        }
      }
    }
  }
  
//   
//   main {
//     padding-bottom: 50px;
//   }
//    
   
  #page-footer {
    height: 50px;
    margin-top: -54px;
    display: flex;
    flex-direction: row;
  }
  
  .foot-col-1 {
    line-height: 50px;
    padding: 0 10px 0 10px;
  }
  
  .foot-col-2 {
    margin-left: 80px;
  }  
}
